<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: OpenMesh::IO::_IOManager_ Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a02025.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="a02022.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenMesh::IO::_IOManager_ Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This is the real IOManager class that is later encapsulated by <a class="el" href="a02617.html" title="A simple singleton template. ">SingletonT</a> to enforce its uniqueness.  
 <a href="a02025.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00197_source.html">OpenMesh/Core/IO/IOManager.hh</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a96b93ad4d6635a5fea110071bff19cfc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a96b93ad4d6635a5fea110071bff19cfc">read</a> (const std::string &amp;_filename, <a class="el" href="a02017.html">BaseImporter</a> &amp;_bi, <a class="el" href="a02029.html">Options</a> &amp;_opt)</td></tr>
<tr class="memdesc:a96b93ad4d6635a5fea110071bff19cfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a mesh from file _filename.  <a href="#a96b93ad4d6635a5fea110071bff19cfc">More...</a><br /></td></tr>
<tr class="separator:a96b93ad4d6635a5fea110071bff19cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8b7820b71be36aa7097c89bbebff9bc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#ae8b7820b71be36aa7097c89bbebff9bc">read</a> (std::istream &amp;_filename, const std::string &amp;_ext, <a class="el" href="a02017.html">BaseImporter</a> &amp;_bi, <a class="el" href="a02029.html">Options</a> &amp;_opt)</td></tr>
<tr class="memdesc:ae8b7820b71be36aa7097c89bbebff9bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a mesh from open std::istream _is.  <a href="#ae8b7820b71be36aa7097c89bbebff9bc">More...</a><br /></td></tr>
<tr class="separator:ae8b7820b71be36aa7097c89bbebff9bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6493341522e1670c7bca82bdd5c1c89b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a6493341522e1670c7bca82bdd5c1c89b">write</a> (const std::string &amp;_filename, <a class="el" href="a02009.html">BaseExporter</a> &amp;_be, <a class="el" href="a02029.html">Options</a> _opt=<a class="el" href="a02029.html#a9f4f797b08c045b611eaa6f8d149da21a7e68f74f3e555a90cc6b3ea1b5fb42ac">Options::Default</a>, std::streamsize _precision=6)</td></tr>
<tr class="memdesc:a6493341522e1670c7bca82bdd5c1c89b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a mesh to file _filename.  <a href="#a6493341522e1670c7bca82bdd5c1c89b">More...</a><br /></td></tr>
<tr class="separator:a6493341522e1670c7bca82bdd5c1c89b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3434323b42dda1dab53d05a720355eca"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a3434323b42dda1dab53d05a720355eca">write</a> (std::ostream &amp;_filename, const std::string &amp;_ext, <a class="el" href="a02009.html">BaseExporter</a> &amp;_be, <a class="el" href="a02029.html">Options</a> _opt=<a class="el" href="a02029.html#a9f4f797b08c045b611eaa6f8d149da21a7e68f74f3e555a90cc6b3ea1b5fb42ac">Options::Default</a>, std::streamsize _precision=6)</td></tr>
<tr class="memdesc:a3434323b42dda1dab53d05a720355eca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a mesh to open std::ostream _os.  <a href="#a3434323b42dda1dab53d05a720355eca">More...</a><br /></td></tr>
<tr class="separator:a3434323b42dda1dab53d05a720355eca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaa73081e25ac4ad3899af398ef9320e"><td class="memItemLeft" align="right" valign="top"><a id="afaa73081e25ac4ad3899af398ef9320e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#afaa73081e25ac4ad3899af398ef9320e">can_read</a> (const std::string &amp;_format) const</td></tr>
<tr class="memdesc:afaa73081e25ac4ad3899af398ef9320e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the format is supported by one of the reader modules. <br /></td></tr>
<tr class="separator:afaa73081e25ac4ad3899af398ef9320e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b4a0a77e79b64c4995c1e8130cb66aa"><td class="memItemLeft" align="right" valign="top"><a id="a0b4a0a77e79b64c4995c1e8130cb66aa"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a0b4a0a77e79b64c4995c1e8130cb66aa">can_write</a> (const std::string &amp;_format) const</td></tr>
<tr class="memdesc:a0b4a0a77e79b64c4995c1e8130cb66aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the format is supported by one of the writer modules. <br /></td></tr>
<tr class="separator:a0b4a0a77e79b64c4995c1e8130cb66aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9d2946c2ac96bc66b2575656615b08d"><td class="memItemLeft" align="right" valign="top"><a id="af9d2946c2ac96bc66b2575656615b08d"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>binary_size</b> (const std::string &amp;_format, <a class="el" href="a02009.html">BaseExporter</a> &amp;_be, <a class="el" href="a02029.html">Options</a> _opt=<a class="el" href="a02029.html#a9f4f797b08c045b611eaa6f8d149da21a7e68f74f3e555a90cc6b3ea1b5fb42ac">Options::Default</a>)</td></tr>
<tr class="separator:af9d2946c2ac96bc66b2575656615b08d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a5b7314f7fcd4ac01374c2482e30661"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a5a5b7314f7fcd4ac01374c2482e30661">qt_read_filters</a> () const</td></tr>
<tr class="memdesc:a5a5b7314f7fcd4ac01374c2482e30661"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all readable file extension + descriptions in one string.  <a href="#a5a5b7314f7fcd4ac01374c2482e30661">More...</a><br /></td></tr>
<tr class="separator:a5a5b7314f7fcd4ac01374c2482e30661"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39f74c9e6c8e32ab44432bc0abc6676f"><td class="memItemLeft" align="right" valign="top">const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a39f74c9e6c8e32ab44432bc0abc6676f">qt_write_filters</a> () const</td></tr>
<tr class="memdesc:a39f74c9e6c8e32ab44432bc0abc6676f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all writeable file extension + descriptions in one string.  <a href="#a39f74c9e6c8e32ab44432bc0abc6676f">More...</a><br /></td></tr>
<tr class="separator:a39f74c9e6c8e32ab44432bc0abc6676f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc523ce80234260b8d6f7084a5cbcb13"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#afc523ce80234260b8d6f7084a5cbcb13">register_module</a> (<a class="el" href="a02033.html">BaseReader</a> *_bl)</td></tr>
<tr class="memdesc:afc523ce80234260b8d6f7084a5cbcb13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a new reader module.  <a href="#afc523ce80234260b8d6f7084a5cbcb13">More...</a><br /></td></tr>
<tr class="separator:afc523ce80234260b8d6f7084a5cbcb13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a539db8979ec6980cd3e038bdc6292cdc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a539db8979ec6980cd3e038bdc6292cdc">register_module</a> (<a class="el" href="a02081.html">BaseWriter</a> *_bw)</td></tr>
<tr class="memdesc:a539db8979ec6980cd3e038bdc6292cdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a new writer module.  <a href="#a539db8979ec6980cd3e038bdc6292cdc">More...</a><br /></td></tr>
<tr class="separator:a539db8979ec6980cd3e038bdc6292cdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a5e3d1d3b352c33564d4844f292275698"><td class="memItemLeft" align="right" valign="top"><a id="a5e3d1d3b352c33564d4844f292275698"></a>
<a class="el" href="a02025.html">_IOManager_</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02025.html#a5e3d1d3b352c33564d4844f292275698">IOManager</a> ()</td></tr>
<tr class="memdesc:a5e3d1d3b352c33564d4844f292275698"><td class="mdescLeft">&#160;</td><td class="mdescRight">Declare the singleton getter function as friend to access the private constructor and destructor. <br /></td></tr>
<tr class="separator:a5e3d1d3b352c33564d4844f292275698"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This is the real IOManager class that is later encapsulated by <a class="el" href="a02617.html" title="A simple singleton template. ">SingletonT</a> to enforce its uniqueness. </p>
<p><em>IOManager</em> is not meant to be used directly by the programmer - the IOManager alias exists for this task.</p>
<p>All reader/writer modules register themselves at this class. For reading or writing data all modules are asked to do the job. If no suitable module is found, an error is returned.</p>
<p>For the sake of reading, the target data structure is hidden behind the <a class="el" href="a02017.html" title="Base class for importer modules. ">BaseImporter</a> interface that takes care of adding vertices or faces.</p>
<p>Writing from a source structure is encapsulate similarly behind a <a class="el" href="a02009.html" title="Base class for exporter modules. ">BaseExporter</a> interface, providing iterators over vertices/faces to the writer modules.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="a04327.html">Read and write meshes from files</a> </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a5a5b7314f7fcd4ac01374c2482e30661"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a5b7314f7fcd4ac01374c2482e30661">&#9670;&nbsp;</a></span>qt_read_filters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; OpenMesh::IO::_IOManager_::qt_read_filters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all readable file extension + descriptions in one string. </p>
<p>File formats are separated by <code>;;</code>. Convenience function for Qt file dialogs. </p>

</div>
</div>
<a id="a39f74c9e6c8e32ab44432bc0abc6676f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39f74c9e6c8e32ab44432bc0abc6676f">&#9670;&nbsp;</a></span>qt_write_filters()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::string&amp; OpenMesh::IO::_IOManager_::qt_write_filters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all writeable file extension + descriptions in one string. </p>
<p>File formats are separated by <code>;;</code>. Convenience function for Qt file dialogs. </p>

</div>
</div>
<a id="a96b93ad4d6635a5fea110071bff19cfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96b93ad4d6635a5fea110071bff19cfc">&#9670;&nbsp;</a></span>read() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::read </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02017.html">BaseImporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_bi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a> &amp;&#160;</td>
          <td class="paramname"><em>_opt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a mesh from file _filename. </p>
<p>The target data structure is specified by the given <a class="el" href="a02017.html" title="Base class for importer modules. ">BaseImporter</a>. The <code>read</code> method consecutively queries all of its reader modules. True is returned upon success, false if all reader modules failed to interprete _filename. </p>

</div>
</div>
<a id="ae8b7820b71be36aa7097c89bbebff9bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8b7820b71be36aa7097c89bbebff9bc">&#9670;&nbsp;</a></span>read() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::read </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>_ext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02017.html">BaseImporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_bi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a> &amp;&#160;</td>
          <td class="paramname"><em>_opt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a mesh from open std::istream _is. </p>
<p>The target data structure is specified by the given <a class="el" href="a02017.html" title="Base class for importer modules. ">BaseImporter</a>. The <code>sread</code> method consecutively queries all of its reader modules. True is returned upon success, false if all reader modules failed to use _is. </p>

</div>
</div>
<a id="afc523ce80234260b8d6f7084a5cbcb13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc523ce80234260b8d6f7084a5cbcb13">&#9670;&nbsp;</a></span>register_module() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::register_module </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a02033.html">BaseReader</a> *&#160;</td>
          <td class="paramname"><em>_bl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Registers a new reader module. </p>
<p>A call to this function should be implemented in the constructor of all classes derived from <a class="el" href="a02033.html" title="Base class for reader modules. ">BaseReader</a>. </p>

</div>
</div>
<a id="a539db8979ec6980cd3e038bdc6292cdc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a539db8979ec6980cd3e038bdc6292cdc">&#9670;&nbsp;</a></span>register_module() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::register_module </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a02081.html">BaseWriter</a> *&#160;</td>
          <td class="paramname"><em>_bw</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Registers a new writer module. </p>
<p>A call to this function should be implemented in the constructor of all classed derived from <a class="el" href="a02081.html" title="Base class for all writer modules. ">BaseWriter</a>. </p>

</div>
</div>
<a id="a6493341522e1670c7bca82bdd5c1c89b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6493341522e1670c7bca82bdd5c1c89b">&#9670;&nbsp;</a></span>write() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::write </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02009.html">BaseExporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_be</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a>&#160;</td>
          <td class="paramname"><em>_opt</em> = <code><a class="el" href="a02029.html#a9f4f797b08c045b611eaa6f8d149da21a7e68f74f3e555a90cc6b3ea1b5fb42ac">Options::Default</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::streamsize&#160;</td>
          <td class="paramname"><em>_precision</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a mesh to file _filename. </p>
<p>The source data structure is specified by the given <a class="el" href="a02009.html" title="Base class for exporter modules. ">BaseExporter</a>. The <code>save</code> method consecutively queries all of its writer modules. True is returned upon success, false if all writer modules failed to write the requested format. <a class="el" href="a02029.html" title="Set options for reader/writer modules. ">Options</a> is determined by _filename's extension. </p>

</div>
</div>
<a id="a3434323b42dda1dab53d05a720355eca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3434323b42dda1dab53d05a720355eca">&#9670;&nbsp;</a></span>write() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_IOManager_::write </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>_ext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02009.html">BaseExporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_be</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a>&#160;</td>
          <td class="paramname"><em>_opt</em> = <code><a class="el" href="a02029.html#a9f4f797b08c045b611eaa6f8d149da21a7e68f74f3e555a90cc6b3ea1b5fb42ac">Options::Default</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::streamsize&#160;</td>
          <td class="paramname"><em>_precision</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a mesh to open std::ostream _os. </p>
<p>The source data structure is specified by the given <a class="el" href="a02009.html" title="Base class for exporter modules. ">BaseExporter</a>. The <code>save</code> method consecutively queries all of its writer modules. True is returned upon success, false if all writer modules failed to write the requested format. <a class="el" href="a02029.html" title="Set options for reader/writer modules. ">Options</a> is determined by _filename's extension. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>OpenMesh/Core/IO/<a class="el" href="a00197_source.html">IOManager.hh</a></li>
<li>OpenMesh/Core/IO/IOManager.cc</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
